new Vue({
    el: '#app',
    data: {
        msg: '233',
        menuList: []
    },
    mounted: function() {

        //异步取回
        var menuArr = [{
            menuName: '信访投诉',
            iconBgCls: 'bg_5CADFF',
            // iconCls: 'fa-car',
            url: '../innerPage/信访投诉.html',
            iconImgUrl: '../static/images/deskCloud/信访投诉.png',
            isTop: true,
            groupId: 1,
            groupName: '环保工作部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '移动执法',
            iconBgCls: 'bg_A094EA',
            // iconCls: 'fa-twitter',
            url: '../innerPage/移动执法.html',
            iconImgUrl: '../static/images/deskCloud/移动执法.png',
            isTop: false,
            groupId: 1,
            groupName: '环保工作部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '行政处罚',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            url: '../innerPage/行政处罚.html',
            iconImgUrl: '../static/images/deskCloud/行政处罚.png',
            isTop: false,
            groupId: 1,
            groupName: '环保工作部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '263办公室',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/263.png',
            isTop: false,
            groupId: 1,
            groupName: '环保工作部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '监察综合处',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/监督检查.png',
            isTop: false,
            groupId: 1,
            groupName: '环保工作部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '重大案件',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/重大案件.png',
            isTop: false,
            groupId: 1,
            groupName: '环保工作部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '省纪检组',
            iconBgCls: '',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/注销申请.png',
            isTop: false,
            groupId: 1,
            groupName: '监察部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '市纪检组',
            iconBgCls: '',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/注销申请.png',
            isTop: false,
            groupId: 1,
            groupName: '监察部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '市纪检组',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/注销申请.png',
            isTop: false,
            groupId: 1,
            groupName: '监察部门',
            toDel: false,
            toAdd: false
        }, {
            menuName: '乡镇纪检组',
            iconBgCls: 'bg_5BD9C5',
            //iconCls: 'fa-twitter',
            url: '../error/404.html',
            iconImgUrl: '../static/images/deskCloud/注销申请.png',
            isTop: false,
            groupId: 1,
            groupName: '监察部门',
            toDel: false,
            toAdd: false
        }];

        this.menuList = menuArr;
    },
    methods: {
        getGroupList: function() {
            return _.groupBy(this.menuList, function(item) { return item.groupName; });
        },
        changePageUrl: function(item) {



            var a = window.parent.app.changePageUrl({
                url: item.url,
                menuName: item.menuName,
                menuPath: [item.groupName]
            });

        },
    }
});